package _1._0._0._127.ormrpc.services.WSLicenseSrvFacade;

public class WSLicenseSrvFacadeSrvProxyProxy implements WSLicenseSrvFacadeSrvProxy {
    private String _endpoint = null;
    private WSLicenseSrvFacadeSrvProxy wSLicenseSrvFacadeSrvProxy = null;

    public WSLicenseSrvFacadeSrvProxyProxy() {
        _initWSLicenseSrvFacadeSrvProxyProxy();
    }

    public WSLicenseSrvFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSLicenseSrvFacadeSrvProxyProxy();
    }

    private void _initWSLicenseSrvFacadeSrvProxyProxy() {
        try {
            wSLicenseSrvFacadeSrvProxy = (new WSLicenseSrvFacadeSrvProxyServiceLocator()).getWSLicenseSrvFacade();
            if (wSLicenseSrvFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSLicenseSrvFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSLicenseSrvFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSLicenseSrvFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSLicenseSrvFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSLicenseSrvFacadeSrvProxy getWSLicenseSrvFacadeSrvProxy() {
        if (wSLicenseSrvFacadeSrvProxy == null)
            _initWSLicenseSrvFacadeSrvProxyProxy();
        return wSLicenseSrvFacadeSrvProxy;
    }

    public int getLicenseMaxNum(String moduleName) throws java.rmi.RemoteException, licensesrvfacade.client.WSInvokeException {
        if (wSLicenseSrvFacadeSrvProxy == null)
            _initWSLicenseSrvFacadeSrvProxyProxy();
        return wSLicenseSrvFacadeSrvProxy.getLicenseMaxNum(moduleName);
    }


}